package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.kust.smarthome.web.dto.CommodityDto;
import com.kust.smarthome.web.model.Commodity;
import com.kust.smarthome.web.vo.CommodityByTypeVo;

public interface ICommodityService extends IService<Commodity> {

    PageInfo<CommodityDto> page4Dto(Integer pageNum, Integer pageSize);

    PageInfo<CommodityDto> select4Dto(String nameInfo, Integer pageNum, Integer pageSize);

    PageInfo<CommodityDto> select4DtoByType(CommodityByTypeVo commodityByTypeVo);
}
